package mis.module.base.model;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;
import org.hibernate.annotations.GenericGenerator;

@Entity
@Table(name="productType")
@DynamicInsert(true)
@DynamicUpdate(true)
public class ProductType implements java.io.Serializable{
	/**
	 * 
	 */
	private static final long serialVersionUID = 826967491687145730L;
	/**
	 * 
	 */

	private int id;
	private String  description;
	private String  productTypeNo;
	
	@Id
	@Column(name = "ID", unique = true, nullable = false, length = 11)
	@GeneratedValue(generator = "generator") 
	@GenericGenerator(name = "generator", strategy = "identity") 
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	
	
	@Column(name="description",length = 100)
	public String getDescription() {
		return description;
	}
	public void setDescription(String description) {
		this.description = description;
	}
	@Column(name = "productTypeNo",unique = true, nullable = false, length = 36)
	public String getProductTypeNo() {
		return productTypeNo;
	}
	public void setProductTypeNo(String productTypeNo) {
		this.productTypeNo = productTypeNo;
	}
}
